Skip to content

Conversation

@HenriqueLimas
Copy link
Member

This is just for testing the GH action. The original PR is #414

HenriqueLimas and others added 3 commits January 7, 2026 18:04
Add automated Percy visual regression testing to GitHub Actions workflow
with intelligent partial snapshot detection for faster builds.

Features:
- Automatic component change detection from git diff
- Partial snapshots for changed components only
- Full snapshots for global changes (tokens, variables, mixins)
- PR blocking until Percy approval
- Auto-approval on main branch for baseline updates
- Path filtering to skip non-Skin changes

Changes:
- Add Percy GitHub Actions workflow (.github/workflows/percy.yml)
- Add change detection script (packages/skin/scripts/detect-changed-components.js)
- Update CONTRIBUTING.md with automated workflow documentation
- Add PERCY-FAQ.md for comprehensive user guidance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

⚠️ No Changeset found

Latest commit: 7c6957c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

The Percy workflow was failing with "fatal: ambiguous argument 'main...HEAD'"
because the checkout action only fetches the PR branch. Added explicit fetch
of the main branch to ensure git diff comparison works correctly.

Co-Authored-By: Claude <noreply@anthropic.com>
Added automated Percy build status reporting that:
- Waits for Percy builds to complete processing
- Posts informative PR comments with build status and link
- Warns if visual changes are detected but doesn't block PRs
- Only fails workflow if Percy build encounters errors

Changes:
- Added @octokit/rest dependency for GitHub API integration
- Created percy-wait-and-comment.js script to monitor builds
- Updated Percy workflow to post build status comments
- Uses PERCY_READ_TOKEN to query build information

The script dynamically fetches the Percy project slug and finds
builds by commit SHA, eliminating need for hardcoded configuration.

Co-Authored-By: Claude <noreply@anthropic.com>
HenriqueLimas and others added 6 commits January 13, 2026 14:20
- Create sass-dependency-analyzer.js to parse @use/@forward directives
- Build forward and reverse dependency graphs
- Find transitive dependencies when SCSS files change
- Integrate dependency analysis into detect-changed-components.js
- Fail-safe to "all" if dependency analysis encounters errors

Co-Authored-By: Claude <noreply@anthropic.com>
HenriqueLimas and others added 4 commits January 13, 2026 15:21
The Percy API /projects endpoint returns the project data directly
at response.data, not response.data.data. This was causing the
"Invalid response from Percy API" error in the GitHub Action.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🎨 Percy Visual Regression Report

Build Status: ⚠️ Visual Changes Detected

Build: #312
Commit: 24d2a91

Summary

  • Total Snapshots: 144
  • Visual Changes: 24
  • Review State: unreviewed

⚠️ 24 visual changes detected. Please review the Percy build to ensure these changes are intentional.

View full report →


Generated by Percy CI • Commit 24d2a91

@github-actions
Copy link
Contributor

🎨 Percy Visual Regression Report

Build Status: ⚠️ Visual Changes Detected

Build: #313
Commit: 7c6957c

Summary

  • Total Snapshots: 1712
  • Visual Changes: 732
  • Review State: unreviewed

⚠️ 732 visual changes detected. Please review the Percy build to ensure these changes are intentional.

View full report →


Generated by Percy CI • Commit 7c6957c

@HenriqueLimas HenriqueLimas deleted the percy-test branch January 13, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants